home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 018a / graphct2.zip / GRAPHCAT.DOC < prev    next >
Text File  |  1991-08-21  |  24KB  |  379 lines

  1.                        G  R  A  P  H  C  A  T       V  2  .  0
  2.                        ═══════════════════════════════════════
  3.  
  4.                           Clip Art Graphics Catalog Builder
  5.                               and File Database Exporter
  6.  
  7.                                      QUICK START
  8.                                      ═══════════
  9.  
  10.                GRAPHCAT V. 2.0 is not free software. Feel free to copy this
  11.           entire package  and pass  it on  unchanged  to other  WordPerfect
  12.           users. If you  use the  program, you should  register by  mailing
  13.           $10. to:  Jerry Stern
  14.                     1323 Mantle Street
  15.                     Baltimore, Maryland 21234-6014
  16.                Registered  users receive a disk  of clip art. (Specify disk
  17.           size.)  Shareware  distributors  may distribute  the  program  in
  18.           unchanged   form  if   they  charge   no  more   than  $5   as  a
  19.           distribution/copying fee.
  20.  
  21.           The author assumes absolutely no damage liability, but the macros
  22.           have been tested extensively, and please write with any problems,
  23.           including DOS version number and WordPerfect release date.
  24.  
  25.           GRAPHCAT requires WordPerfect 5.1, release date 6/29/90 or later.
  26.           It is a  WordPerfect macro that reads any disk  or directory, and
  27.           creates a  pictorial  listing of  all the  graphics found.  After
  28.           copying the macro  to the WP  macro directory, run  the macro  by
  29.           pressing  Macro  (Alt-F10),  and entering  GRAPHCAT.  Answer  the
  30.           prompts  for the  drive  and directory,  file extension,  catalog
  31.           title, number of columns,  and graphic height. The  default value
  32.           for the columns and height allow 28 graphics per page.
  33.  
  34.           INDEX and  INDEX5 (DOS  5 version  of INDEX) require  WordPerfect
  35.           5.1,  any release date. These macros read any file directory, and
  36.           convert the  directory listing into a  comma-delimited mail-merge
  37.           file for use by PC-File or  dBase. Copy them along with GRAPHCAT,
  38.           and  start INDEX in  the same way.  The prompts  are similar, BUT
  39.           INDEX  can  use  any MS-DOS  wild  card  for  the extension,  and
  40.           GRAPHCAT does not allow wild cards.
  41.  
  42.           FILEINDX  requires a  dBase-compatible database  program. PC-File
  43.           5.01  or newer  is  highly recommended.  The files  FILEINDX.HDB,
  44.           FILEINDX.DBF, and NAME.NDX compose a sample graphics database for
  45.           PC-File. Copy them together to wherever you can reach them easily
  46.           with the database program.These are the database files used  with
  47.           INDEX  to create  a  database of  graphics  files (or  any  other
  48.           files).  Load  these  files  into a  directory  readable  by  the
  49.           database program, and run the program normally. Be sure to delete
  50.           or overwrite the one sample record already in the file.
  51.  
  52.           The files with  a .WPG extension are  clip art. The  patterns and
  53.           styles vary greatly, and  I'm not telling you what  they are--but
  54.           try GRAPHCAT on them to get a feel for what the macro does.
  55.           G R A P H C A T   V. 2.0                                        2
  56.  
  57.           What is GRAPHCAT?
  58.           ═════════════════
  59.  
  60.                I've  been collecting  clip  art for  different projects.  A
  61.           small  book, some  newsletters, signs,  and still  more pictorial
  62.           projects.  I've drawn  some,  scanned some  paper  clip art,  and
  63.           bought some disks  of pictures. I was beginning to  lose track of
  64.           which disk had  what pictures. I needed  an index, a printout  of
  65.           every graphic I've got, so I could keep them handy for reference.
  66.                The  WPG  files  shipped  with WordPerfect  have  their  own
  67.           printed picture indexes of art in the manual, but shareware disks
  68.           of  PCX or  GEM files  are escapees  from that  elusive paperless
  69.           office we all keep hearing about.  And clip art disks are uneven;
  70.           some of them are full  disks of excellent art on related  topics,
  71.           but others  are totally unrelated  pictures. Worse, there  is the
  72.           occasional bad file on those  disks. Overall, shareware clip  art
  73.           disks are worthwhile,  but a  printed index would  help sort  the
  74.           good files from the fuzzy junk.
  75.                And  the commercial  clip  art isn't  much  better. Oh,  the
  76.           graphics  are  better, but  the printed  indexes are  printed too
  77.           small, or on newsprint, or are  all mixed in with the pictures of
  78.           every other graphic collection sold by that company.
  79.                Meanwhile, my  co-workers on a newsletter  project wanted to
  80.           see all their clip art. I kept their graphics on a separate disk,
  81.           but they  wanted paper copies to refer to, so they could tell me,
  82.           "Use that  butterfly picture from page two."  I began to create a
  83.           sample document,  with every graphic  shown, and the  file names,
  84.           and the disk  titles, and  immediately found that  there was  too
  85.           much work involved. I had two  options: I could delegate the job,
  86.           or write a  macro to do the job. Since I couldn't find anyone who
  87.           would spend  three hours to  create the  index for  each disk,  I
  88.           wrote  GRAPHCAT. It's  a lot  faster than  an assistant;  it only
  89.           takes from  a few seconds to  eight minutes to  complete the job,
  90.           depending  on  the speed  of the  computer  and the  size  of the
  91.           graphics files.
  92.                GRAPHCAT makes this task easy, so easy that nearly no effort
  93.           is needed to create a new catalog for each directory or floppy of
  94.           pictures.  If the macro is told the  drive and path of the files,
  95.           the type of files on  the disk, like WPG or PCX, and the title of
  96.           the disk, the computer should do the rest.
  97.                With just that information,  the WordPerfect macro reads the
  98.           appropriate directory, identifies the graphics files, sets  their
  99.           sizes, locations,  and  options in  a  catalog, and  leaves  that
  100.           catalog  ready to  print.  Once the  catalog  is built,  you  may
  101.           preview it, print it, and save it if you want.
  102.                However, I  don't recommend saving these  files because they
  103.           will  be  slightly larger  than the  cumulative  size of  all the
  104.           graphics in the directory.  What? I heard that.... I  tried using
  105.           the  WP graphics-on-disk option  to save memory  space. It causes
  106.           more problems than  it solves. Although it is possible to write a
  107.  
  108.           All Rights Reserved                          (C) 1991 Jerry Stern
  109.           G R A P H C A T   V. 2.0                                        3
  110.  
  111.           macro that  uses that  feature and  provides the  capabilities of
  112.           GRAPHCAT (I've done it  while developing GRAPHCAT), such  a macro
  113.           must reset default directories to floppies, and reset  them again
  114.           AFTER printing,  and the  files would not  print properly  unless
  115.           printed  while the  default  directories were  reset. That  early
  116.           macro worked 95% of the time, and totally locked up everything 5%
  117.           of the time. It's history.
  118.                WordPerfect corporation has a  habit of tinkering with their
  119.           software. There  are many  different versions of  WordPerfect 5.1
  120.           for  MS-DOS systems. Some of their releases are mostly bug fixes,
  121.           and  a few  new drivers for  new hardware; the  new releases also
  122.           include minor  new features. The  6/29/90 release included  a new
  123.           macro command, {SYSTEM}entry. It can copy  a file name off a List
  124.           Files  (F5) menu. GRAPHCAT uses  that macro command,  so users of
  125.           earlier versions of WP should upgrade.
  126.                To  check your  WP release  date, press  Help (F3)  from the
  127.           document screen of WP. The release date will be in  the top right
  128.           corner  of the introductory help screen. To upgrade to the newest
  129.           release of WP  5.1, call  WordPerfect with your  credit card  and
  130.           license number and  place the  order--the cost as  of Summer  '91
  131.           ranged from $10-$22,  depending on  how many disks  they have  to
  132.           ship.  Instructions  for installing  the  upgrade  come with  the
  133.           disks, but be sure  to check for, and read, a  README file on the
  134.           #1 disk  of each type.  That README  file will list  the features
  135.           added to the program in that release. (WP  sales phone number, as
  136.           of  Summer '91,  is 1-800-321-4566  or 1-801-225-5000.)  I cannot
  137.           speak  for  WordPerfect  Corporation,   so  of  course  all  such
  138.           information  is subject  to change--call  and ask  amounts before
  139.           sending them money.
  140.  
  141.  
  142.           PROMPTS
  143.           ═══════
  144.  
  145.                Start  GRAPHCAT from  a  blank document  screen by  pressing
  146.           Macro  (Alt-F10), typing  GRAPHCAT, and  pressing Enter.  A full-
  147.           screen  display will appear, as shown below. At the first prompt,
  148.           enter  the drive  name  and  path  for  the  subdirectory  to  be
  149.           searched. You may omit the ending backslash if you like. GRAPHCAT
  150.           is  smart enough  to accept  the path  name either  way. Pressing
  151.           Cancel (F1) at this prompt will end macro execution.
  152.                The second prompt asks for the file type. Because  a disk of
  153.           graphics  might contain  nearly anything  besides graphics,  each
  154.           catalog must be limited to one type of graphic file, such as WPG,
  155.           TIF,  or GEM  files.  Any  type  of  graphics  file  readable  by
  156.           WordPerfect may be entered here. If your files are kept sorted by
  157.           what  they  are, such  as  DrawPerfect pictures  together  as WPG
  158.           files, or scanned  artwork as TIF  files, they will  be ready  to
  159.           inventory. If the files  are mixed, simply run GRAPHCAT  once for
  160.           each type of  graphic file  on the disk.  The resulting  catalogs
  161.  
  162.           All Rights Reserved                          (C) 1991 Jerry Stern
  163.           G R A P H C A T   V. 2.0                                        4
  164.  
  165.           could be printed separately,  or edited together. Pressing Cancel
  166.           at this prompt moves the cursor back up to the  first prompt, and
  167.           at each  following prompt, pressing  Cancel will move  the cursor
  168.           back up one prompt.
  169.                The  third prompt asks for a title, and the macro will place
  170.           that title in  a header on each page of  the catalog. I recommend
  171.           entering the name  of the graphics collection or the  name of the
  172.           archived backup for that collection, such as "Business Graphics--
  173.           BUSINESS.ZIP" in this area.
  174.  
  175.           ╔═══════════════════════════════════════════════════════════════╗
  176.           ║                    G  R  A  P  H  C  A  T              V. 2.0 ║
  177.           ║                  (C)1991 Jerry L. Stern                       ║
  178.           ║                                                               ║
  179.           ║ Enter the drive:\path to search.           (e.g. a:\picture1) ║
  180.           ║                                                               ║
  181.           ║                                                               ║
  182.           ║ Enter the file type to find.             (e.g. WPG, PCX, GEM) ║
  183.           ║                                                               ║
  184.           ║                                                               ║
  185.           ║ Enter the title for the catalog pages.  (e.g. Picture File 1) ║
  186.           ║                                                               ║
  187.           ║                                                               ║
  188.           ║ How many columns across should there be?          (default 4) ║
  189.           ║                                                               ║
  190.           ║                                                               ║
  191.           ║ How tall should the graphics boxes be?           (default 1") ║
  192.           ║                                                               ║
  193.  
  194.                The next two prompts  request the number of columns  and the
  195.           height to make each graphic. WordPerfect will calculate the width
  196.           to keep the graphics true to scale, room permitting. If less than
  197.           about twice the height of  a graphic is available for  the width,
  198.           some  graphics in horizontal format will be compressed to fit the
  199.           column. For four columns, a height of one inch allows ample room,
  200.           and 28 images fit on one page. Other  combinations that work well
  201.           include 8 columns with a height of 1/2" for very simple graphics,
  202.           resulting in 13 graphics  per column, and 104 graphics  per page.
  203.           For highly  detailed graphics, try  two columns of  1.6" graphics
  204.           for eight graphics per page.
  205.                After  the last  entry has  been made,  GRAPHCAT  will begin
  206.           loading  the  graphics into  the  document.  As each  graphic  is
  207.           loaded, the macro announces  the new graphic on screen.  When the
  208.           directory of graphics is large, this process will be considerably
  209.           faster if there is  expanded memory available for WordPerfect  to
  210.           use, but  hard disk space  will be substituted  automatically. If
  211.           your  system does  not have  expanded memory,  be sure  that your
  212.           default directory is set to a hard drive, rather than a floppy.
  213.                IF  GRAPHCAT and WordPerfect  decide that a  graphic in your
  214.           sample directory  is not  a proper  graphics file, GRAPHCAT  will
  215.  
  216.           All Rights Reserved                          (C) 1991 Jerry Stern
  217.           G R A P H C A T   V. 2.0                                        5
  218.  
  219.           print that message  in your  catalog, along with  the bad  file's
  220.           name.  You may delete that message after the catalog is prepared,
  221.           or  you may  try to convert  the bad  graphic or  edit it  with a
  222.           graphics  program, resave it, and run GRAPHCAT again. Because not
  223.           every   version  of   every  graphic   format  is   supported  by
  224.           WordPerfect,  I prefer  to leave  the message  in the  catalog to
  225.           identify a  file that may be usable in other software, but not in
  226.           WordPerfect.
  227.                When  the catalog  is finished,  the screen display  will be
  228.           replaced by the  new catalog  page and a  reminder comment.  (The
  229.           comment  will not print.) You  may, and should,  preview the page
  230.           before printing. When using more than four columns, long graphics
  231.           names may wrap to the next  line, reducing the number of graphics
  232.           that fit on a page. If the  names wrap, reset the base font to  a
  233.           narrow or  thin typeface, using Format  (Shift-F8), (3) Document,
  234.           (3) Initial Base Font, and choosing a small font.
  235.                A  page full of graphics  will print slowly,  and some laser
  236.           printers may not  have enough internal memory to print  a page of
  237.           that complexity. On a laser printer, if  the entire page does not
  238.           print,  try printing  the page  at a  lower setting  for graphics
  239.           quality, or use fewer columns.
  240.  
  241.  
  242.           INDEX, INDEX5, and FILEINDX
  243.           ═══════════════════════════
  244.  
  245.                INDEX is  a WP macro  that reads a  directory of files,  and
  246.           converts  that directory  listing  into a  file  that a  database
  247.           program can import  and add to a database. INDEX5  is the version
  248.           of  INDEX that  runs in  MS-DOS  5.0, and  FILEINDX is  a set  of
  249.           database  files for PC-File 5.0 or  dBase to use in importing the
  250.           files created by INDEX.
  251.                Why  two versions of INDEX?  DOS 5's DIR  command is greatly
  252.           changed  and improved over that  of previous versions  of DOS. If
  253.           you  are running  DOS 5, but  are not  using the  new SET DIRCMD=
  254.           command  to set defaults  for DIR, you may  use either version of
  255.           INDEX, but the  INDEX5 version  will run slightly  faster, as  it
  256.           takes advantage  of some of the  new options for DIR.  If you use
  257.           the SET DIRCMD=  command with the /p option, you must use INDEX5.
  258.           If you are using an older version of DOS, you must use INDEX.
  259.                The file produced by INDEX is a "comma-delimited mail-merge"
  260.           file. Most database  programs can import these  with no problems.
  261.           Although I  created  the FILEINDX  format  for keeping  track  of
  262.           graphics  and clip  art, the format  and the INDEX  macros can be
  263.           used just as  easily to form a master catalog of  every file on a
  264.           hard disk,  or any category of  files you choose. In  addition to
  265.           the information from the  directory and whatever label  you enter
  266.           while running  INDEX, the FILEINDX  data screen  allows room  for
  267.           comments,  because  it isn't  always  possible  to remember  that
  268.           RX12-76.CGM is a picture of a troll at a bridge.
  269.  
  270.           All Rights Reserved                          (C) 1991 Jerry Stern
  271.           G R A P H C A T   V. 2.0                                        6
  272.  
  273.                To use INDEX, run  the macro in the  usual way, by  pressing
  274.           Macro  (Alt-F10), typing  INDEX  or INDEX5,  and pressing  ENTER.
  275.           Answer the prompts  that appear on screen in the  same way as for
  276.           the prompts in  GRAPHCAT, with one exception. The  second prompt,
  277.           for a file mask, may use any legal  MS-DOS wild card, such as T??
  278.           for all  files with an  extension starting with  T, or *  for all
  279.           files. (GRAPHCAT will not work with a wild card extension.)
  280.                The screen  will flicker twice as WordPerfect  shells out to
  281.           DOS to retrieve  the directory to be converted and  saves it to a
  282.           temporary file called c:\delete.me. The  macro will automatically
  283.           erase  the temporary file after retrieving it into WP. Then INDEX
  284.           will search the listing, removing spaces as needed, and inserting
  285.           commas between  columns, resulting  in the  comma-delimited list,
  286.           STORED  IN DOCUMENT 2. That list must be saved as a DOS text file
  287.           for the database  program: Save the file  by pressing Text In/Out
  288.           (Ctrl-F5), (1) DOS Text, (1) Save, and entering the file name for
  289.           the data file.
  290.  
  291.           IMPORTANT:
  292.                When you first set up a database of clip art  or other files
  293.           in a database, you will read and process many directories. I have
  294.           allowed for that process  in INDEX. Always start the  INDEX macro
  295.           from Document 1, which must be totally empty. If it is not empty,
  296.           INDEX will  remind you to empty it, and remind  you how to do so.
  297.           When INDEX  completes  its work,  the list  of files  will be  in
  298.           Document 2. For the next disk, Switch (Shift-F3) back to Document
  299.           1,  and run the macro again. The second list will be added at the
  300.           bottom of the  existing list.  Once you have  run each  directory
  301.           through INDEX, save  the list as  a DOS text  file, exit WP,  and
  302.           import the data from within the database program.
  303.  
  304.  
  305.           IMPORTING INTO PC-FILE
  306.           ══════════════════════
  307.  
  308.                Here  are  the  steps for  the  import  from  within PC-File
  309.           V. 5.0: Run the program,  and enter the disk and  directory where
  310.           the  FILEINDX files are located. Place the cursor on the FILEINDX
  311.           name  and press F10. From  the main menu,  choose Utilities, then
  312.           Import,  then Mail Merge. Enter the drive, and then the directory
  313.           name of the location  of the DOS text file. PC-File  will display
  314.           the  file names for that directory.  Place the cursor on the list
  315.           filename,  and press F10. Choose to Overwrite the data already in
  316.           the database  ONLY IF THIS WILL  BE THE FIRST  BATCH OF FILENAMES
  317.           ADDED. OTHERWISE,  CHOOSE APPEND  DATA. For  each  entry you  may
  318.           choose to  add the information, or skip to the next record, or to
  319.           quit,  or to press  X and let PC-File  continue through the list,
  320.           adding all the data to the  file. Choose Yes several times to add
  321.           the first  few records manually  until you are  sure the file  is
  322.           being imported correctly, and then choose X to finish the import.
  323.  
  324.           All Rights Reserved                          (C) 1991 Jerry Stern
  325.           G R A P H C A T   V. 2.0                                        7
  326.  
  327.           IN GENERAL
  328.           ══════════
  329.  
  330.                Don't attempt  to edit these macros  from within WordPerfect
  331.           5.1; these  macros are  too large  to  work with  for even  minor
  332.           changes from that  editor. All  the macros in  this package  were
  333.           created using the Editor of  WordPerfect Office, which speeds  up
  334.           the  development time for creating  large macros, and  so lets me
  335.           add features that would be impractical otherwise.
  336.                GRAPHCAT and both INDEX  macros have error trapping routines
  337.           built in to prevent garbage entries, and to turn off Reveal Codes
  338.           if  needed, and  will  not try  to  run if  you  start them  with
  339.           anything in  Document 1. If you wish to import the catalog or the
  340.           file  list into a  document, run the macro  first, and then merge
  341.           the other text or formatting into the catalog or file list.
  342.  
  343.                Since starting to catalog my clip art collection, I've found
  344.           pictures I didn't know I had, and I've  used some of those in new
  345.           projects. Now  that I don't have to hire extra help to create the
  346.           listings,  I can find the picture I  want in no time, and, better
  347.           yet, I  can take the picture  notebook with me to  a co-worker, a
  348.           client,  or  a conference,  and I  don't  need to  borrow someone
  349.           else's computer and be  at the mercy of someone  else's operating
  350.           system.
  351.  
  352.  
  353.           REGISTRATION
  354.           ════════════
  355.  
  356.           GRAPHCAT V.  2.0 is not free  software. Feel free to  copy this entire
  357.           package and  pass it on  unchanged to other WordPerfect  users. If you
  358.           use the program, you should register by mailing $10. to:
  359.                                         Jerry Stern
  360.                                     1323 Mantle Street
  361.                               Baltimore, Maryland 21234-6014
  362.                       (301) 661-2224 (after 11/91 use area code 410)
  363.  
  364.                Registered users receive a disk of clip art. (Specify disk size.)
  365.           Shareware distributors may distribute the program in unchanged form if
  366.           they charge no more than $5  as a distribution/copying fee. The author
  367.           assumes  absolutely  no damage  liability,  but the  macros  have been
  368.           tested extensively, and please write  with any problems, including DOS
  369.           version number and WordPerfect release date.
  370.  
  371.           There is a registration  form provided with the GRAPHCAT macros on the
  372.           second page of the file README.DOC.
  373.  
  374.           WordPerfect is a registered trademark of WordPerfect Corporation.
  375.           PC-File is a registered trademark of ButtonWare, Inc.
  376.  
  377.  
  378.           All Rights Reserved                          (C) 1991 Jerry Stern
  379.